package com.itheima.service.impl;

import com.itheima.dao.FileMapper;
import com.itheima.pojo.File;
import com.itheima.service.FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FileServiceImpl implements FileService {
    @Autowired
    private FileMapper fileMapper;
    @Override
    public File findFileById(String avatar) {
        return fileMapper.selectByPrimaryKey(avatar);
    }
}
